package com.ph.shopping.common.util.com.order;

import java.text.SimpleDateFormat;
import java.util.Date;

public class CreateOrderUtil {
	// 生成订单编码随机数(根据bizCOde处理业务)
		public synchronized static String createOrderCode(String bziCode) {
			Date d = new Date();
			SimpleDateFormat sdf = new SimpleDateFormat("yyyySSSMMmmss");
			return "PH" + bziCode + sdf.format(d) + (int)(Math.random() * 89999 + 10000);
		}
		
		public static void main(String[] args) {
		}
}
